<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<link rel="stylesheet" href="style.css" type="text/css">
<meta content="text/html; charset=iso-8859-1" http-equiv="Content-Type">
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="Start" href="index.html">
<link rel="previous" href="ThreadUnix.html">
<link rel="next" href="Uchar.html">
<link rel="Up" href="index.html">
<link title="Index of types" rel=Appendix href="index_types.html">
<link title="Index of exceptions" rel=Appendix href="index_exceptions.html">
<link title="Index of values" rel=Appendix href="index_values.html">
<link title="Index of modules" rel=Appendix href="index_modules.html">
<link title="Index of module types" rel=Appendix href="index_module_types.html">
<link title="Arg" rel="Chapter" href="Arg.html">
<link title="Arg_helper" rel="Chapter" href="Arg_helper.html">
<link title="Array" rel="Chapter" href="Array.html">
<link title="ArrayLabels" rel="Chapter" href="ArrayLabels.html">
<link title="Ast_helper" rel="Chapter" href="Ast_helper.html">
<link title="Ast_invariants" rel="Chapter" href="Ast_invariants.html">
<link title="Ast_iterator" rel="Chapter" href="Ast_iterator.html">
<link title="Ast_mapper" rel="Chapter" href="Ast_mapper.html">
<link title="Asttypes" rel="Chapter" href="Asttypes.html">
<link title="Attr_helper" rel="Chapter" href="Attr_helper.html">
<link title="Bigarray" rel="Chapter" href="Bigarray.html">
<link title="Buffer" rel="Chapter" href="Buffer.html">
<link title="Builtin_attributes" rel="Chapter" href="Builtin_attributes.html">
<link title="Bytes" rel="Chapter" href="Bytes.html">
<link title="BytesLabels" rel="Chapter" href="BytesLabels.html">
<link title="Callback" rel="Chapter" href="Callback.html">
<link title="CamlinternalFormat" rel="Chapter" href="CamlinternalFormat.html">
<link title="CamlinternalFormatBasics" rel="Chapter" href="CamlinternalFormatBasics.html">
<link title="CamlinternalLazy" rel="Chapter" href="CamlinternalLazy.html">
<link title="CamlinternalMod" rel="Chapter" href="CamlinternalMod.html">
<link title="CamlinternalOO" rel="Chapter" href="CamlinternalOO.html">
<link title="Ccomp" rel="Chapter" href="Ccomp.html">
<link title="Char" rel="Chapter" href="Char.html">
<link title="Clflags" rel="Chapter" href="Clflags.html">
<link title="Complex" rel="Chapter" href="Complex.html">
<link title="Condition" rel="Chapter" href="Condition.html">
<link title="Config" rel="Chapter" href="Config.html">
<link title="Consistbl" rel="Chapter" href="Consistbl.html">
<link title="Depend" rel="Chapter" href="Depend.html">
<link title="Digest" rel="Chapter" href="Digest.html">
<link title="Docstrings" rel="Chapter" href="Docstrings.html">
<link title="Dynlink" rel="Chapter" href="Dynlink.html">
<link title="Ephemeron" rel="Chapter" href="Ephemeron.html">
<link title="Event" rel="Chapter" href="Event.html">
<link title="Filename" rel="Chapter" href="Filename.html">
<link title="Format" rel="Chapter" href="Format.html">
<link title="Gc" rel="Chapter" href="Gc.html">
<link title="Genlex" rel="Chapter" href="Genlex.html">
<link title="Graphics" rel="Chapter" href="Graphics.html">
<link title="GraphicsX11" rel="Chapter" href="GraphicsX11.html">
<link title="Hashtbl" rel="Chapter" href="Hashtbl.html">
<link title="Identifiable" rel="Chapter" href="Identifiable.html">
<link title="Int32" rel="Chapter" href="Int32.html">
<link title="Int64" rel="Chapter" href="Int64.html">
<link title="Lazy" rel="Chapter" href="Lazy.html">
<link title="Lexer" rel="Chapter" href="Lexer.html">
<link title="Lexing" rel="Chapter" href="Lexing.html">
<link title="List" rel="Chapter" href="List.html">
<link title="ListLabels" rel="Chapter" href="ListLabels.html">
<link title="Location" rel="Chapter" href="Location.html">
<link title="Longident" rel="Chapter" href="Longident.html">
<link title="Map" rel="Chapter" href="Map.html">
<link title="Marshal" rel="Chapter" href="Marshal.html">
<link title="Misc" rel="Chapter" href="Misc.html">
<link title="MoreLabels" rel="Chapter" href="MoreLabels.html">
<link title="Mutex" rel="Chapter" href="Mutex.html">
<link title="Nativeint" rel="Chapter" href="Nativeint.html">
<link title="Numbers" rel="Chapter" href="Numbers.html">
<link title="Obj" rel="Chapter" href="Obj.html">
<link title="Oo" rel="Chapter" href="Oo.html">
<link title="Parse" rel="Chapter" href="Parse.html">
<link title="Parser" rel="Chapter" href="Parser.html">
<link title="Parsetree" rel="Chapter" href="Parsetree.html">
<link title="Parsing" rel="Chapter" href="Parsing.html">
<link title="Pervasives" rel="Chapter" href="Pervasives.html">
<link title="Pparse" rel="Chapter" href="Pparse.html">
<link title="Pprintast" rel="Chapter" href="Pprintast.html">
<link title="Printast" rel="Chapter" href="Printast.html">
<link title="Printexc" rel="Chapter" href="Printexc.html">
<link title="Printf" rel="Chapter" href="Printf.html">
<link title="Profile" rel="Chapter" href="Profile.html">
<link title="Queue" rel="Chapter" href="Queue.html">
<link title="Random" rel="Chapter" href="Random.html">
<link title="Scanf" rel="Chapter" href="Scanf.html">
<link title="Set" rel="Chapter" href="Set.html">
<link title="Simplif" rel="Chapter" href="Simplif.html">
<link title="Sort" rel="Chapter" href="Sort.html">
<link title="Spacetime" rel="Chapter" href="Spacetime.html">
<link title="Stack" rel="Chapter" href="Stack.html">
<link title="StdLabels" rel="Chapter" href="StdLabels.html">
<link title="Str" rel="Chapter" href="Str.html">
<link title="Stream" rel="Chapter" href="Stream.html">
<link title="String" rel="Chapter" href="String.html">
<link title="StringLabels" rel="Chapter" href="StringLabels.html">
<link title="Strongly_connected_components" rel="Chapter" href="Strongly_connected_components.html">
<link title="Syntaxerr" rel="Chapter" href="Syntaxerr.html">
<link title="Sys" rel="Chapter" href="Sys.html">
<link title="Targetint" rel="Chapter" href="Targetint.html">
<link title="Tbl" rel="Chapter" href="Tbl.html">
<link title="Terminfo" rel="Chapter" href="Terminfo.html">
<link title="Thread" rel="Chapter" href="Thread.html">
<link title="ThreadUnix" rel="Chapter" href="ThreadUnix.html">
<link title="Typemod" rel="Chapter" href="Typemod.html">
<link title="Uchar" rel="Chapter" href="Uchar.html">
<link title="Unix" rel="Chapter" href="Unix.html">
<link title="UnixLabels" rel="Chapter" href="UnixLabels.html">
<link title="Warnings" rel="Chapter" href="Warnings.html">
<link title="Weak" rel="Chapter" href="Weak.html"><title>Typemod</title>
</head>
<body>
<div class="navbar"><a class="pre" href="ThreadUnix.html" title="ThreadUnix">Previous</a>
&nbsp;<a class="up" href="index.html" title="Index">Up</a>
&nbsp;<a class="post" href="Uchar.html" title="Uchar">Next</a>
</div>
<h1>Module <a href="type_Typemod.html">Typemod</a></h1>

<pre><span id="MODULETypemod"><span class="keyword">module</span> Typemod</span>: <code class="code"><span class="keyword">sig</span></code> <a href="Typemod.html">..</a> <code class="code"><span class="keyword">end</span></code></pre><div class="info module top">
<div class="info-desc">
<p>Type-checking of the module language and typed ast plugin hooks</p>
</div>
</div>
<hr width="100%">

<pre><span id="VALtype_module"><span class="keyword">val</span> type_module</span> : <code class="type">Env.t -> <a href="Parsetree.html#TYPEmodule_expr">Parsetree.module_expr</a> -> Typedtree.module_expr</code></pre>
<pre><span id="VALtype_structure"><span class="keyword">val</span> type_structure</span> : <code class="type">Env.t -><br>       <a href="Parsetree.html#TYPEstructure">Parsetree.structure</a> -><br>       <a href="Location.html#TYPEt">Location.t</a> -> Typedtree.structure * Types.signature * Env.t</code></pre>
<pre><span id="VALtype_toplevel_phrase"><span class="keyword">val</span> type_toplevel_phrase</span> : <code class="type">Env.t -> <a href="Parsetree.html#TYPEstructure">Parsetree.structure</a> -> Typedtree.structure * Types.signature * Env.t</code></pre>
<pre><span id="VALtype_implementation"><span class="keyword">val</span> type_implementation</span> : <code class="type">string -><br>       string -><br>       string -><br>       Env.t -><br>       <a href="Parsetree.html#TYPEstructure">Parsetree.structure</a> -> Typedtree.structure * Typedtree.module_coercion</code></pre>
<pre><span id="VALtype_interface"><span class="keyword">val</span> type_interface</span> : <code class="type">string -> Env.t -> <a href="Parsetree.html#TYPEsignature">Parsetree.signature</a> -> Typedtree.signature</code></pre>
<pre><span id="VALtransl_signature"><span class="keyword">val</span> transl_signature</span> : <code class="type">Env.t -> <a href="Parsetree.html#TYPEsignature">Parsetree.signature</a> -> Typedtree.signature</code></pre>
<pre><span id="VALcheck_nongen_schemes"><span class="keyword">val</span> check_nongen_schemes</span> : <code class="type">Env.t -> Types.signature -> unit</code></pre>
<pre><span id="VALtype_open_"><span class="keyword">val</span> type_open_</span> : <code class="type">?used_slot:bool <a href="Pervasives.html#TYPEref">ref</a> -><br>       ?toplevel:bool -><br>       <a href="Asttypes.html#TYPEoverride_flag">Asttypes.override_flag</a> -><br>       Env.t -> <a href="Location.html#TYPEt">Location.t</a> -> <a href="Longident.html#TYPEt">Longident.t</a> <a href="Asttypes.html#TYPEloc">Asttypes.loc</a> -> Path.t * Env.t</code></pre>
<pre><span id="VALmodtype_of_package"><span class="keyword">val</span> modtype_of_package</span> : <code class="type">Env.t -><br>       <a href="Location.html#TYPEt">Location.t</a> -><br>       Path.t -> <a href="Longident.html#TYPEt">Longident.t</a> list -> Types.type_expr list -> Types.module_type</code></pre>
<pre><span id="VALsimplify_signature"><span class="keyword">val</span> simplify_signature</span> : <code class="type">Types.signature -> Types.signature</code></pre>
<pre><span id="VALpath_of_module"><span class="keyword">val</span> path_of_module</span> : <code class="type">Typedtree.module_expr -> Path.t option</code></pre>
<pre><span id="VALsave_signature"><span class="keyword">val</span> save_signature</span> : <code class="type">string -><br>       Typedtree.signature -><br>       string -> string -> Env.t -> Cmi_format.cmi_infos -> unit</code></pre>
<pre><span id="VALpackage_units"><span class="keyword">val</span> package_units</span> : <code class="type">Env.t -> string list -> string -> string -> Typedtree.module_coercion</code></pre>
<pre><code><span id="TYPEerror"><span class="keyword">type</span> <code class="type"></code>error</span> = </code></pre><table class="typetable">
<tr>
<td align="left" valign="top" >
<code><span class="keyword">|</span></code></td>
<td align="left" valign="top" >
<code><span id="TYPEELTerror.Cannot_apply"><span class="constructor">Cannot_apply</span></span> <span class="keyword">of</span> <code class="type">Types.module_type</code></code></td>

</tr>
<tr>
<td align="left" valign="top" >
<code><span class="keyword">|</span></code></td>
<td align="left" valign="top" >
<code><span id="TYPEELTerror.Not_included"><span class="constructor">Not_included</span></span> <span class="keyword">of</span> <code class="type">Includemod.error list</code></code></td>

</tr>
<tr>
<td align="left" valign="top" >
<code><span class="keyword">|</span></code></td>
<td align="left" valign="top" >
<code><span id="TYPEELTerror.Cannot_eliminate_dependency"><span class="constructor">Cannot_eliminate_dependency</span></span> <span class="keyword">of</span> <code class="type">Types.module_type</code></code></td>

</tr>
<tr>
<td align="left" valign="top" >
<code><span class="keyword">|</span></code></td>
<td align="left" valign="top" >
<code><span id="TYPEELTerror.Signature_expected"><span class="constructor">Signature_expected</span></span></code></td>

</tr>
<tr>
<td align="left" valign="top" >
<code><span class="keyword">|</span></code></td>
<td align="left" valign="top" >
<code><span id="TYPEELTerror.Structure_expected"><span class="constructor">Structure_expected</span></span> <span class="keyword">of</span> <code class="type">Types.module_type</code></code></td>

</tr>
<tr>
<td align="left" valign="top" >
<code><span class="keyword">|</span></code></td>
<td align="left" valign="top" >
<code><span id="TYPEELTerror.With_no_component"><span class="constructor">With_no_component</span></span> <span class="keyword">of</span> <code class="type"><a href="Longident.html#TYPEt">Longident.t</a></code></code></td>

</tr>
<tr>
<td align="left" valign="top" >
<code><span class="keyword">|</span></code></td>
<td align="left" valign="top" >
<code><span id="TYPEELTerror.With_mismatch"><span class="constructor">With_mismatch</span></span> <span class="keyword">of</span> <code class="type"><a href="Longident.html#TYPEt">Longident.t</a> * Includemod.error list</code></code></td>

</tr>
<tr>
<td align="left" valign="top" >
<code><span class="keyword">|</span></code></td>
<td align="left" valign="top" >
<code><span id="TYPEELTerror.With_makes_applicative_functor_ill_typed"><span class="constructor">With_makes_applicative_functor_ill_typed</span></span> <span class="keyword">of</span> <code class="type"><a href="Longident.html#TYPEt">Longident.t</a> * Path.t * Includemod.error list</code></code></td>

</tr>
<tr>
<td align="left" valign="top" >
<code><span class="keyword">|</span></code></td>
<td align="left" valign="top" >
<code><span id="TYPEELTerror.With_changes_module_alias"><span class="constructor">With_changes_module_alias</span></span> <span class="keyword">of</span> <code class="type"><a href="Longident.html#TYPEt">Longident.t</a> * Ident.t * Path.t</code></code></td>

</tr>
<tr>
<td align="left" valign="top" >
<code><span class="keyword">|</span></code></td>
<td align="left" valign="top" >
<code><span id="TYPEELTerror.With_cannot_remove_constrained_type"><span class="constructor">With_cannot_remove_constrained_type</span></span></code></td>

</tr>
<tr>
<td align="left" valign="top" >
<code><span class="keyword">|</span></code></td>
<td align="left" valign="top" >
<code><span id="TYPEELTerror.Repeated_name"><span class="constructor">Repeated_name</span></span> <span class="keyword">of</span> <code class="type">string * string</code></code></td>

</tr>
<tr>
<td align="left" valign="top" >
<code><span class="keyword">|</span></code></td>
<td align="left" valign="top" >
<code><span id="TYPEELTerror.Non_generalizable"><span class="constructor">Non_generalizable</span></span> <span class="keyword">of</span> <code class="type">Types.type_expr</code></code></td>

</tr>
<tr>
<td align="left" valign="top" >
<code><span class="keyword">|</span></code></td>
<td align="left" valign="top" >
<code><span id="TYPEELTerror.Non_generalizable_class"><span class="constructor">Non_generalizable_class</span></span> <span class="keyword">of</span> <code class="type">Ident.t * Types.class_declaration</code></code></td>

</tr>
<tr>
<td align="left" valign="top" >
<code><span class="keyword">|</span></code></td>
<td align="left" valign="top" >
<code><span id="TYPEELTerror.Non_generalizable_module"><span class="constructor">Non_generalizable_module</span></span> <span class="keyword">of</span> <code class="type">Types.module_type</code></code></td>

</tr>
<tr>
<td align="left" valign="top" >
<code><span class="keyword">|</span></code></td>
<td align="left" valign="top" >
<code><span id="TYPEELTerror.Implementation_is_required"><span class="constructor">Implementation_is_required</span></span> <span class="keyword">of</span> <code class="type">string</code></code></td>

</tr>
<tr>
<td align="left" valign="top" >
<code><span class="keyword">|</span></code></td>
<td align="left" valign="top" >
<code><span id="TYPEELTerror.Interface_not_compiled"><span class="constructor">Interface_not_compiled</span></span> <span class="keyword">of</span> <code class="type">string</code></code></td>

</tr>
<tr>
<td align="left" valign="top" >
<code><span class="keyword">|</span></code></td>
<td align="left" valign="top" >
<code><span id="TYPEELTerror.Not_allowed_in_functor_body"><span class="constructor">Not_allowed_in_functor_body</span></span></code></td>

</tr>
<tr>
<td align="left" valign="top" >
<code><span class="keyword">|</span></code></td>
<td align="left" valign="top" >
<code><span id="TYPEELTerror.Not_a_packed_module"><span class="constructor">Not_a_packed_module</span></span> <span class="keyword">of</span> <code class="type">Types.type_expr</code></code></td>

</tr>
<tr>
<td align="left" valign="top" >
<code><span class="keyword">|</span></code></td>
<td align="left" valign="top" >
<code><span id="TYPEELTerror.Incomplete_packed_module"><span class="constructor">Incomplete_packed_module</span></span> <span class="keyword">of</span> <code class="type">Types.type_expr</code></code></td>

</tr>
<tr>
<td align="left" valign="top" >
<code><span class="keyword">|</span></code></td>
<td align="left" valign="top" >
<code><span id="TYPEELTerror.Scoping_pack"><span class="constructor">Scoping_pack</span></span> <span class="keyword">of</span> <code class="type"><a href="Longident.html#TYPEt">Longident.t</a> * Types.type_expr</code></code></td>

</tr>
<tr>
<td align="left" valign="top" >
<code><span class="keyword">|</span></code></td>
<td align="left" valign="top" >
<code><span id="TYPEELTerror.Recursive_module_require_explicit_type"><span class="constructor">Recursive_module_require_explicit_type</span></span></code></td>

</tr>
<tr>
<td align="left" valign="top" >
<code><span class="keyword">|</span></code></td>
<td align="left" valign="top" >
<code><span id="TYPEELTerror.Apply_generative"><span class="constructor">Apply_generative</span></span></code></td>

</tr>
<tr>
<td align="left" valign="top" >
<code><span class="keyword">|</span></code></td>
<td align="left" valign="top" >
<code><span id="TYPEELTerror.Cannot_scrape_alias"><span class="constructor">Cannot_scrape_alias</span></span> <span class="keyword">of</span> <code class="type">Path.t</code></code></td>

</tr></table>



<pre><span id="EXCEPTIONError"><span class="keyword">exception</span> Error</span> <span class="keyword">of</span> <code class="type"><a href="Location.html#TYPEt">Location.t</a> * Env.t * <a href="Typemod.html#TYPEerror">error</a></code></pre>

<pre><span id="EXCEPTIONError_forward"><span class="keyword">exception</span> Error_forward</span> <span class="keyword">of</span> <code class="type"><a href="Location.html#TYPEerror">Location.error</a></code></pre>

<pre><span id="VALreport_error"><span class="keyword">val</span> report_error</span> : <code class="type">Env.t -> <a href="Format.html#TYPEformatter">Format.formatter</a> -> <a href="Typemod.html#TYPEerror">error</a> -> unit</code></pre>
<pre><span id="MODULEImplementationHooks"><span class="keyword">module</span> <a href="Typemod.ImplementationHooks.html">ImplementationHooks</a></span>: <code class="type"><a href="Misc.HookSig.html">Misc.HookSig</a></code><code class="type"> 
  with type t = Typedtree.structure * Typedtree.module_coercion</code></pre>
<pre><span id="MODULEInterfaceHooks"><span class="keyword">module</span> <a href="Typemod.InterfaceHooks.html">InterfaceHooks</a></span>: <code class="type"><a href="Misc.HookSig.html">Misc.HookSig</a></code><code class="type"> 
  with type t = Typedtree.signature</code></pre></body></html>